cmake_minimum_required(VERSION 3.0.0)

project(myproject)

set(SRC main chumo.c main.c jpegsrc.c)

file(GLOB SRC "./*.c")

link_directories(${PROJECT_SOURCE_DIR})
link_directories(/home/ye/jpeglib/lib)

set(CMAKE_C_COMPILER "arm-linux-gcc")
set(CMAKE_C_COMPILER "arm-linux-g++")

add_executable(main ${SRC})

target_link_libraries(main font m)

target_link_libraries(main jpeg)